package com.gewe.wxChat.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 微信任务表
 * @TableName wx_task
 */
@TableName(value ="wx_task")
@Data
public class WxTask implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备ID
     */
    @TableField(value = "appId")
    private String appId;

    /**
     * 所属微信的wxid
     */
    @TableField(value = "wxId")
    private String wxId;

    /**
     * 任务类型
     */
    @TableField(value = "taskType")
    private Integer taskType;

    /**
     * 任务状态 0-未执行 1-执行成功
     */
    @TableField(value = "taskStatus")
    private Integer taskStatus;

    /**
     * 消息ID
     */
    @TableField(value = "msgID")
    private Long msgID;

    /**
     * 消息发送人的wxid
     */
    @TableField(value = "fromUserName")
    private String fromUserName;

    /**
     * 消息接收人的wxid
     */
    @TableField(value = "toUserName")
    private String toUserName;

    /**
     * 消息类型
     */
    @TableField(value = "msgType")
    private Integer msgType;

    /**
     * 消息内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 消息通知内容
     */
    @TableField(value = "pushContent")
    private String pushContent;

    /**
     * 消息发送时间
     */
    @TableField(value = "msgCreateTime")
    private Integer msgCreateTime;

    /**
     * 新的消息ID
     */
    @TableField(value = "newMsgId")
    private Long newMsgId;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}